package com.qcby.service.Impl;

import com.qcby.dao.TeacherMapper;
import com.qcby.entity.Teacher;
import com.qcby.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("teacherService")
public class TeacherServiceImpl implements TeacherService {

    @Autowired
    private TeacherMapper teacherMapper;


    @Override
    public List<Teacher> find(Teacher teacher) {
        return teacherMapper.find(teacher);
    }

    @Override
    public int changPassword(String password, Integer tea_account) {
        return teacherMapper.changPassword(password,tea_account);
    }
}
